import request from '@/utils/request';


/**
 * 获取字典数组
 * @param dictCode 字典Code
 * @return List<Map>
 */
export const initDictOptions = (code) => {
    if (code.indexOf(',') > 0 && code.indexOf(' ') > 0) {
        code = encodeURI(code);
    }
    return request.get(`/dict/getDictItems/${code}`);
};
